package com.acme.task5;

/**
 * Class which modifies text string.
 * @author belDser
 */
public class TextModifier
{
	/**
	 * The main() method.
	 * @param args command line arguments
	 */
	public static void main(String[] args)
	{	
		if (args.length == 0)
		{
			System.out.println("No input string");
			return;
		}
		String str = args[0];
		for (int i = 0; i < str.length(); i++)
		{
			char charAtIndex = str.charAt(i);
			if (Character.isDigit(charAtIndex))
			{
				continue;
			}
			else if (charAtIndex == '+' || charAtIndex == '-')
			{
				System.out.print(charAtIndex);
			}
			System.out.print(charAtIndex);
		}
	}
}
